package com.mi.system.dto.request;

import com.mi.common.core.validation.Save;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户启用/禁用请求信息
 *
 * @author jin_huaquan
 * @version 1.0
 * @date 2022/1/14 13:19
 */
@ApiModel(value = "UserEnableRequestDTO对象", description = "用户启用/禁用请求信息")
@Data
public class UserEnableRequestDTO {

    @ApiModelProperty(value = "账号")
    @NotBlank(groups = Save.class, message = "用户账号不能为空")
    private String username;

    @ApiModelProperty(value = "是否启用（0-禁用,1-启用）")
    @NotNull(message = "用户账号启用/禁用选项不能为空")
    private Integer enabled;
}
